package messages;

import java.util.List;


/**
 * ListGamesReplyMessage
 *
 * Message sent by the server with the list of available games.
 */
public class ListGamesReplyMessage extends Message {

	public ListGamesReplyMessage(List<String> games) {
		super();
		
		this.games = games;
	}

	
	/**
	 * Returns the list of games.
	 * 
	 * @return The list of games.
	 */
	public List<String> getGames() {
		return this.games;
	}

	
	public String toString() {		
		return super.toString() + " " + games.toString();
	}
	
	
	private List<String> games;	// List of available games.

	private static final long serialVersionUID = 1L;	
}
